const createList = (offset, length) => {
    let arr = new Array(length)
    for (let i = 1 + offset; i < 1 + offset + length; i++) {
        arr[i - offset - 1] = i
    }
    return arr
}

const allParams = (data) => {
    return {
        "photovoltaicCost": {
            "bxf": data.gfjycb.data.bxf.value,
            "clf": data.gfjycb.data.clf.value,
            "flfjqt": data.gfjycb.data.flfjqt.value,
            "gdzcczjzj_CZ": data.gfjycb.data.gdzccz.value,
            "gdzcczjzj_ZJNX": data.gfjycb.data.gdzczjnx.value,
            "lxxzkh": data.gfjycb.data.lxxzkh.value,
            "qtfy": data.gfjycb.data.qtfy.value.bodys[0].data.qtfy.value.years.data,
            "qtfy2": data.gfjycb.data.qtfy.value.bodys[1].data.qtfy.value.years.data,
            "qtfy3": data.gfjycb.data.qtfy.value.bodys[2].data.qtfy.value.years.data,
            "qtfy4": data.gfjycb.data.qtfy.value.bodys[3].data.qtfy.value.years.data,
            "qtfyjsfs1": data.gfjycb.data.qtfy.value.bodys[0].data.qtfy.name.value,
            "qtfyjsfs2": data.gfjycb.data.qtfy.value.bodys[1].data.qtfy.name.value,
            "qtfyjsfs3": data.gfjycb.data.qtfy.value.bodys[2].data.qtfy.name.value,
            "qtfyjsfs4": data.gfjycb.data.qtfy.value.bodys[3].data.qtfy.name.value,
            "qtfyx": data.gfjycb.data.qtfyx.value,
            "qtzctxnx": data.gfjycb.data.qtzctxnx.value,
            "rgnpjgz": data.gfjycb.data.rgnpjgz.value,
            "sjnf": createList(1, parseInt(data.info.data.xmyyq.value)),
            "tffzfwf": data.gfjycb.data.tffzfwf.value,
            "wxzctxnx": data.gfjycb.data.wxzctxnx.value,
            "xlf": data.gfjycb.data.xlf.value.years.data,
            "ygsl": data.gfjycb.data.ygsl.value,
            "ywf": data.gfjycb.data.ywf.value.years.data,
            "qtsr": data.gfsr.data.qtsr.value.years.data
        },
        "photovoltaicIncome": {
            "bwms": data.gfsr.data.bwms.value.value,
            "cdmbtshsr": data.gfsr.data.cdmbtshsr.value,
            "denjyhznsjl": data.gfsr.data.znsjl.value,
            "jbns": data.gfsr.data.jbns.value,
            "mjns": data.gfsr.data.mjns.value,
            "sfzxnmnjbzc": data.gfsr.data.sfzxsmsjbzc.value.value,
            "snlldxfdxss": data.gfsr.data.ndxlyxss.value,
            "swdjhs": data.gfsr.data.swdj_show.value,
            "swdljsfs": data.gfsr.data.swdljsfs.value.value,
            "tysnsjl": data.gfsr.data.tysnsjl.value,
            "zzsjzjtbl": data.gfsr.data.zzsjzjtbl.value.value,
            "zzssl": data.gfsr.data.zzssl.value,
            "sjljsfs": data.gfsr.data.sjljsfs.value.value,
            "sjl": data.gfsr.data.sjl.value.years.data,
            "swdj": data.gfsr.data.swdj.value,
            "zydj": data.gfsr.data.zydj.value,
            "zfzybl": data.gfsr.data.zfzybl.value,
            "zlzczc": data.gfsr.data.zlzczc.value.years.data,
            "zlfsr": data.gfsr.data.zlfsr.value.years.data,
            "jszrhsysr": data.gfsr.data.jszrhsysr.value.years.data,
        },
        "projectInfo": {
            "dwkwjttz": data.info.data.dwkwjttz.value,
            "fndtz": data.info.data.fndtz.value,
            "gdzcbl": data.info.data.gdzcbl.value,
            "gfxtrl": data.info.data.zlczjrl.value,
            "gfxtrlzlc": data.info.data.zlczjrl.value,
            "hyjzsyl_SDSH": 6,
            "hyjzsyl_SDSQ": data.info.data.hyjzsylq.value,
            "jagcf": data.info.data.jagcf.value,
            "jsq": data.info.data.jsheq.value,
            "jsqqsn": data.info.data.jsqqsn.value,
            "jszdzdfy": data.info.data.jszdzdfy.value,
            "kdksj": data.info.data.kdksj.value,
            "qtfy": data.info.data.kdksj_qtfy.value,
            "qtzcbl": data.info.data.qtzcbl.value,
            "sbf": data.info.data.sbf.value,
            "trje": data.info.data.zbjtrje.value,
            "wxzcbl": data.info.data.wxzcbl.value,
            "xmyxq": data.info.data.xmyyq.value,
            "zbcbl": data.info.data.zbcbl.value,
            "zbjjzsyl": data.info.data.zbjjzsyl.value,
            "zbjtrfs": data.info.data.zbjtrfs.value.value,
            "zbjzdttzbl": data.info.data.zbjzxttzbl.value,
            "qsyf": data.info.data.jsqqsy.value,
            "jsyf": data.info.data.jsqjsy.value
        },
        "taxRate": {
            "cswhjss": data.sl.data.cswhjss.value,
            "fdyygjjbl": data.sl.data.fdyygjjbl.value,
            "jwffj": data.sl.data.jyffj.value,
            "qysdssl": data.sl.data.qysdssl.value.years.data,
            "ryyygjjbl": data.sl.data.ryyygjjbl.value,
            "yflrbl": data.sl.data.yflrbl.value,
            "lcoezxl": data.sl.data.lcoezxl.value,
        },
        "workingCapitalLoans": {
            "cqdkll": data.ldzjjdk.data.cqdkll.value,
            "dqdkll": data.ldzjjdk.data.dqdkll.value,
            "dwkwzb": data.ldzjjdk.data.dwqwzb.value,
            "hbfxfs": data.ldzjjdk.data.hbfxfs.value.value,
            "ldzj": data.ldzjjdk.data.ldzj.value,
            "ldzjdkll": data.ldzjjdk.data.ldzjdkll.value,
            "ldzjjsfs": data.ldzjjdk.data.ldzjjsfs.value.value,
            "ldzjzbjbl": data.ldzjjdk.data.ldzjzbjbl.value,
            "ydhkq": data.ldzjjdk.data.ydhkq.value,
        }
    }
}

export default allParams